package com.moss.cloud.common.core.constant;

public class Constant {
    /**
     * 默认客户端
     */
    public static final String DEF_CLIENT = "C0C34DF76830FA52E94945F4BC22E1E8";
    /**
     * 未登录下的默认信息
     */
    public static final String NO_LOGIN = "NO_LOGIN";
    /**
     * 登陆失败次数
     */
    public static final String LOGIN_NUM = "login::num_";
    /**
     * AES-KEY
     */
    public static final String KEY = "AESmoss077o3WERT";
    /**
     * 登录用户信息
     */
    public static final String LOGIN_USER = "login_user::";
    /**
     * 登录用户信息缓存时间
     */
    public static final long LOGIN_USER_TIME = 86400L;
    /**
     * JWT_KEY
     */
    public static final String JWT_KEY = "JWTmoss077o3WERT";
    /**
     * 系统菜单资源key
     */
    public static final String SYS_MENU_KEY = "sys_menu::";
    /**
     * 用户资源key
     */
    public static final String USER_SYS_MENU = "user_resource::";
    /**
     * 系统默认密码
     */
    public static final String DEFAULT_PASSWORD = "DEFAULT_PASSWORD";
    /**
     * 登录通知开关
     */
    public static final String LOGIN_NOTIFY_SWITCH = "LOGIN_NOTIFY_SWITCH";
    /**
     * 用户默认头像
     */
    public static final String DEFAULT_USER_PHOTO = "DEFAULT_USER_PHOTO";

    /**
     * 小程序APPID
     */
    public static final String WX_APP_ID = "WX_APP_ID";
    /**
     * 小程序SECRET
     */
    public static final String WX_APP_SECRET = "WX_APP_SECRET";
    /**
     * 登录状态-成功
     */
    public static final String LOGIN_SUCCESS = "成功";
    /**
     * 登录状态-失败
     */
    public static final String LOGIN_FAIL = "失败";
    /** 幂等性缓存时间 1分钟*/
    public static final long X_CLIENT_API_TIME = 5;

    /** 幂等性KEY*/
    public static final String X_CLIENT_TOKEN = "x_client_token::";

    /** 租户配置缓存KEY*/
    public static final String TENANT_CONFIG = "tenant_config::";

    /** 租户配置缓存KEY*/
    public static final String SYSTEM_CONFIG = "system_config::";

    /** 系统角色缓存KEY*/
    public static final String SYS_ROLE = "sys_role::";

    /** 系统默认角色KEY*/
    public static final String SYSTEM_DEF_ROLE = "USER@USER";

    /** 短信验证码KEY*/
    public static final String SMS_CODE_KEY = "sms_code_key::";
    /** 短信验证码发送次数*/
    public static final String SMS_CODE_SEND_NUM = "sms_code_send_num::";

    /** 用户不属于任何租户和部门默认租户ID和部门ID为0*/
    public static final Long NO_TENANT_AND_DEPT = 0L;

    /** 超级租户默认租户ID100*/
    public static final Long SUPER_TENANT = 100L;

    /** Redis生成IDKEY*/
    public static final String ID_WORK_KEY = "ID_WORK_KEY::";

    /** Redis生成订单IDKEY*/
    public static final String ORDER_WORK_KEY = "ORDER_WORK_KEY::";

    /** Redis生成流水号*/
    public static final String TRACE_NO_KEY = "TRACE_NO_KEY::";

    /** MOSS-CLOUD成功响应码*/
    public static final String SYSTEM_SUCCESS = "000000";

    /** MOSS-CLOUD 通用操作类型-新增*/
    public static final String ADD = "ADD";

    /** MOSS-CLOUD 通用操作类型-编辑*/
    public static final String UPDATE = "UPDATE";

    /** MOSS-CLOUD 客户端缓存KEY*/
    public static final String CLIENT_TOKEN = "CLIENT_TOKEN::";

    /** MOSS-CLOUD 缓存分隔符*/
    public static final String SPLIT = "::";

    /** MOSS-CLOUD 默认数据查询最大条数-从安全方面考虑，避免一次过量查询*/
    public static final long MAX_VALUE = 1000L;
    /** 0常量*/
    public static final int ZERO = 0;
}
